package com.gcit.seniorWish.web.core.shiro;

import java.io.Serializable;
import java.util.List;

/**
 * 自定义Authentication对象，使得Subject除了携带用户的登录名外还可以携带更多信息
 *
 * @author fengshuonan
 * @date 2016年12月5日 上午10:26:43
 */
public class ShiroUser implements Serializable {

	private static final long serialVersionUID = 1L;

	public String id; // 主键ID
	public String account; // 账号
	public String name; // 姓名
	public String deptId; // 部门id
	public List<String> roleIdList; // 角色集
	public String deptName; // 部门名称
	public List<String> roleNames; // 角色名称集

	public Integer type; // 用户类型
	public String schoolId; // 学校id
	public String classId; // 班级id
	public Integer dataScope;// 数据范围

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public List<String> getRoleIdList() {
		return roleIdList;
	}

	public void setRoleIdList(List<String> roleIdList) {
		this.roleIdList = roleIdList;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public List<String> getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(List<String> roleNames) {
		this.roleNames = roleNames;
	}

	public Integer getDataScope() {
		return dataScope;
	}

	public void setDataScope(Integer dataScope) {
		this.dataScope = dataScope;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Override
	public String toString() {
		return "ExamineeScore{" +
					", id=" + id +
					", account=" + account +
					", name=" + name +
					", deptId=" + deptId +
					", roleIdList=" + roleIdList +
					", deptName=" + deptName +
					", roleNames=" + roleNames +
					", type=" + type +
					", schoolId=" + schoolId +
					", dataScope=" + dataScope +
					", classId=" + classId +
					"}";
		}

}
